package pl.mmadej.ds4java.ds.list;

import pl.mmadej.ds4java.ds.common.Node;


public class LinkedListNode<T> extends Node<T> {

    private LinkedListNode<T> previous;
    private LinkedListNode<T> next;

    public LinkedListNode(T value, LinkedListNode<T> previous, LinkedListNode<T> next) {
        super(value);
        this.previous = previous;
        this.next = next;
    }

    public LinkedListNode(T value) {
        super(value);
    }

    public LinkedListNode<T> getPrevious() {
        return previous;
    }

    public void setPrevious(LinkedListNode<T> previous) {
        this.previous = previous;
    }

    public LinkedListNode<T> getNext() {
        return next;
    }

    public void setNext(LinkedListNode<T> next) {
        this.next = next;
    }


}
